﻿@model IDictionary<string, object>
@using Pku.BookStore.Web.Controllers;
@{
    ViewBag.Title = "NewBook";
}

<link rel="stylesheet" type="text/css" href="/Content/book.plist.css" media="all">
<div class="w main">
    <div class="left">
        <div class="m m0" id="newbooks">
            <div class="mt">
                <h2>
                    新书推荐<br>
                    <span>New Releases</span></h2>
                <div class="extra">
                </div>
            </div>
            <div class="mc">
                @foreach (var item in (List<Pku.BookStore.Model.ProductModel>)Model["productListNew"])
                {
                    <dl onclick="fe(&#39;bt1&#39;,&#39;11065807&#39;,0)">
                        <dt class="p-img bookimg">
                            <div class="i-img">
                                <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">
                                    <img data-img="1" width="100" height="100" alt="@item.BookName" src="@item.Image"
                                        class="err-product"></a></div>
                        </dt>
                        <dd>
                            <div class="p-name">
                                <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">
                                    @item.BookName</a></div>
                            <div class="p-info">
                                @item.Introduction.Substring(0, item.Introduction.Length > 20 ? 20 : item.Introduction.Length)...</div>
                            <div class="extra">
                                <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">深度了解&gt;&gt;</a></div>
                        </dd>
                    </dl>
                }
            </div>
        </div>
        <!--newbooks end-->
    </div>
    <!--left end-->
    <div class="right-extra">
        <div id="filter">
            <div class="fore1">
                <dl class="order">
                    <dt>排序：</dt>
                    <dd class="down  curr">
                        <a href="#">入录时间</a><b></b></dd>
                </dl>
            </div>
            <span class="clr"></span>
        </div>
        <!--filter end-->
        <div class="m" id="plist">
            @foreach (var item in (List<Pku.BookStore.Model.ProductModel>)Model["productList"])
            {
                <div class="item">
                    <div class="p-img bookimg">
                        <div class="i-img">
                            <a target="_blank" href="/Product/Detail/@item.BookID">
                                <img onerror="this.src=&#39;/images/none_150.gif&#39;"
                                    src="@item.Image" width="130" height="130"></a></div>
                    </div>
                    <dl>
                        <dt class="p-name"><a target="_blank" href="/Product/Detail/@item.BookID">@item.BookName</a></dt><dd><div
                            class="p-info">
                            作 者：@item.Author
                            译&nbsp;&nbsp;&nbsp;&nbsp;<br>
                            出&nbsp;版&nbsp;社：<a href="/Publisher/Detail/@item.PublisherId">@item.PublisherName</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
                            <div class="p-grade clearfix">
                                <span class="date-pub">出版时间：@item.PublishDate.ToString("yyyy-MM-dd")</span></div>
                            <div class="p-info">
                                <div class="mark-price">
                                    定 价：<del>￥@item.Price</del></div>
                                图书价：<strong>@item.TruePrice</strong><span>@(item.isSpecial == 1 ? "（特价）" : "")</span></div>
                            <div class="btns" style="color: White">
                                <a href="/Product/Detail/@item.BookID" target="_blank"
                                    class="btn-text btn-append" style="color: Red">购买</a></div>
                        </dd>
                    </dl>
                    <span class="clr"></span>
                </div>
            }
            <!-- <cache>miss</cache> -->
        </div>
        <!--plist end-->
        <div class="m clearfix">
            <div class="pager">@Html.Raw(UserControls.Pager(Html, "p", 10, ViewBag.productCount))</div>
            <!--pagin end-->
            <script type="text/javascript">                $("#plist .tip").hoverForIE6();</script>
        </div>
    </div>
    <!--right-extra end-->
    <span class="clr"></span>
</div>


